import _fetch from './request'
function getSubjectList (params) {
  return _fetch({
    url: '/subject/list',
    method: 'get',
    params
  })
}
function setSubjectStatus (data) {
  return _fetch({
    url: '/subject/status',
    method: 'post',
    data
  })
}
function addSubject (data) {
  return _fetch({
    url: '/subject/add',
    method: 'post',
    data
  })
}
function editSubject (data) {
  return _fetch({
    url: '/subject/edit',
    method: 'post',
    data
  })
}
function removeSubject (data) {
  return _fetch({
    url: '/subject/remove',
    method: 'post',
    data
  })
}
export {
  getSubjectList,
  setSubjectStatus,
  addSubject,
  editSubject,
  removeSubject
}
